package org.example.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.example.entity.Interviewrecord;
import org.example.entity.Interviewschedule;
import org.example.mapper.InterviewscheduleMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InterviewscheduleService extends ServiceImpl<InterviewscheduleMapper, Interviewschedule> {
    public List<Interviewschedule> queryStatusPendingqueryStatusPending(@Param("status") String status,
                                                                        @Param("CandidateName") String CandidateName,
                                                                        @Param("IntendedPosition") String IntendedPosition) {
        return baseMapper.queryStatusPendingqueryStatusPending(status, CandidateName, IntendedPosition);
    }
    public List<Interviewschedule> selectInterviewDetailById(@Param("interviewNumber") Integer interviewNumber){
        return baseMapper.selectInterviewDetailById(interviewNumber);
    }
    public List<Interviewschedule> selectInterviewScheduleWithInterviewerAndEmployee(@Param("interviewNumber") String interviewNumber,
                                                                                     @Param("interviewerId") String interviewerId){
        return baseMapper.selectInterviewScheduleWithInterviewerAndEmployee(interviewNumber, interviewerId);
    }

}
